package com.shycloud.mido.music.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.music.domain.MisUserCollection;
import com.shycloud.mido.music.vo.CollCourseWareVO;
import com.shycloud.mido.music.vo.CoursewareDetailVO;
import com.shycloud.mido.music.vo.MyCollectionVO;
import com.shycloud.mido.music.vo.UserCollectionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MisUserCollectionService extends IService<MisUserCollection> {


	/**
	 * 分页获取我收藏的曲集信息
	 *
	 * @param memberId
	 * @param page
	 * @return com.baomidou.mybatisplus.core.metadata.IPage
	 * @author nianhua.jiang
	 * @date 2020/6/16 15:27
	 */
	IPage<UserCollectionVO> getUserCollection(String memberId, Page page);

	/**
	 * 分页获取定制曲集列表
	 *
	 * @param memberId
	 * @param page
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.music.vo.UserCollectionVO>
	 * @author nianhua.jiang
	 * @date 2020/7/6 16:53
	 */
	IPage<UserCollectionVO> getUserCollectionIsCustom(String memberId, Page page);

	/**
	 * 获取用户收藏曲集的数量
	 *
	 * @param
	 * @return java.lang.Integer
	 * @author nianhua.jiang
	 * @date 2020/7/6 18:16
	 */
	Integer getCount(String memberId);

	List<MyCollectionVO> getUserCollectionByMini(String searchWord, String memberId);

	List<CollCourseWareVO> getCoursewareFolderList(Integer groupId);


}
